/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bttk.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商户充值Entity
 * @author soyatec
 * @version 2016-11-02
 */
public class TUserRecharge extends DataEntity<TUserRecharge> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 充值商户编号
	private Date rechargeTime;		// 充值时间
	private String rechargeAmount;		// 充值金额
	private Date beforeEndDate;		// 充值前截止日期
	private Date afterEndDate;		// 充值后截止日期
	private String remark;		// 充值备注
	
	public TUserRecharge() {
		super();
	}

	public TUserRecharge(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRechargeTime() {
		return rechargeTime;
	}

	public void setRechargeTime(Date rechargeTime) {
		this.rechargeTime = rechargeTime;
	}
	
	public String getRechargeAmount() {
		return rechargeAmount;
	}

	public void setRechargeAmount(String rechargeAmount) {
		this.rechargeAmount = rechargeAmount;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeforeEndDate() {
		return beforeEndDate;
	}

	public void setBeforeEndDate(Date beforeEndDate) {
		this.beforeEndDate = beforeEndDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAfterEndDate() {
		return afterEndDate;
	}

	public void setAfterEndDate(Date afterEndDate) {
		this.afterEndDate = afterEndDate;
	}
	
	@Length(min=0, max=255, message="充值备注长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}